<extend name="Index/index" />

<block name="Main content">
	<div style="padding:40px">
		<div class="row">
			<div class="col-md-12">
				<p>
					给 角色:<b style="color:#f56954"><{$role.name}></b>    分配权限
				</p>
				
				<form action="<{:U('Role/savenode')}>" method='post'>
				<p style="width:600px">
					
					<volist name="nodes" id="vo">
						<!-- 如果列表里有就要自动勾选起来 -->
						<div class="btn btn-info"><{$key}>模块</div> <br>
						
						<volist name="vo" id="vol">
						<input type="checkbox" name="node[]"  value="<{$vol.0}>" <if condition="in_array($vol['0'],$ro_nodes) eq true">checked</if>><{$vol.1}>
						&nbsp;
						&nbsp;
						&nbsp;
						&nbsp;
						</volist>
						<hr>
					</volist>
				</p>
				<input type="hidden" name="rid" value="<{$role.id}>">
				<input type="submit" value="保存" class="btn btn-primary">

				</form>
		
			</div>
		</div>  <!--row结束-->
	<div>
	
</block>